Update guide.md
authorWebTogz <antonin.carette@gmail.com>
Tue, 10 Nov 2015 18:28:47 +0000 (19:28 +0100)
committerWebTogz <antonin.carette@gmail.com>
Tue, 10 Nov 2015 18:28:47 +0000 (19:28 +0100)
Modification of the second sentence, to explain how to pass flags with Cargo

src/doc/guide.md

index ad7819fa3f9438cecab694f464e2fa6de688f72f..5b40a95fd1412bdc879767b7c6b2d6c3c8f0386b 100644 (file)
@@ -92,7 +92,8 @@ class="s1">     Fresh</span> hello_world v0.1.0 (file:///path/to/project/hello_w
 class="s1">   Running</span> `target/debug/hello_world`
 Hello, world!</code></pre>
 
-To pass some arguments to your program, you can use `cargo run first_argument second_argument`. If flags are being passed to the command being invoked, please to use `cargo run -- --a_flag -b an_argument`.
+To pass some arguments to your program, use `cargo run first_arg second_arg`.  
+If flags are being passed, use a '--' separator to tell Cargo which flags go where, like `cargo run -- --foo -b bar`.
 
 You'll now notice a new file, `Cargo.lock`. It contains information about our
 dependencies. Since we don't have any yet, it's not very interesting.